﻿using System.Collections.Generic;
using System.Web.Mvc;
using Journal.Domain.Models;
using Tools.Utilities;

namespace Journal.Front.Presentation.Models.StudentModels
{
    public class StudentEditModel
    {
        public StudentEditModel()
        {
        }

        public StudentEditModel(string name, string surname, int genderId, int groupId)
        {
            Name = name;
            Surname = surname;
            GenderId = genderId;
            GroupId = groupId;
            Id = 0;
        }

        public StudentEditModel(int groupId)
        {
            GroupId = groupId;
        }

        public StudentEditModel(User user)
        {
            Name = user.UserInfo.Name;
            Surname = user.UserInfo.Surname;
            GenderId = (int)user.UserInfo.Gender;
        }

        public int Id { get; set; }

        public string Name { get; set; }

        public string Surname { get; set; }

        public int GenderId { get; set; }

        public int GroupId { get; set; }

        public IList<SelectListItem> GenderTypeses { get; set; }
    }
}